home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / grafix / boards / a2410src.lha / Public / Source / graphics.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-18  |  3.1 KB  |  133 lines

  1. #ifndef  GRAPHICS_TIGA_H
  2. #define  GRAPHICS_TIGA_H
  3.  
  4. /*
  5. **    $VER: gsp_gfx.h 1.0 (25.1.94)
  6. **
  7. **    C typedefs. For use with 32 bit integers only.
  8. **
  9. **    (C) Copyright 1994, PointDesign -js-
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef POINTER_H
  14. #include "pointer.h"
  15. #endif
  16. #ifndef GRAPHICS_TYPES_H
  17. #include "gfx_types.h"
  18. #endif
  19.  
  20. #ifndef  GRAPHICS_GFX_H
  21. #include <graphics/gfx.h>
  22. #endif
  23. #ifndef  GRAPHICS_DISPLAYINFO_H
  24. #include <graphics/displayinfo.h>
  25. #endif
  26. #ifndef  GRAPHICS_GELS_H
  27. #include <graphics/gels.h>
  28. #endif
  29. #ifndef  GRAPHICS_RASTPORT_H
  30. #include <graphics/rastport.h>
  31. #endif
  32. #ifndef  GRAPHICS_VIEW_H
  33. #include <graphics/view.h>
  34. #endif
  35. #ifndef  GRAPHICS_COPPER_H
  36. #include <graphics/copper.h>
  37. #endif
  38. #ifndef  GRAPHICS_CLIP_H
  39. #include <graphics/clip.h>
  40. #endif
  41. #ifndef  GRAPHICS_REGIONS_H
  42. #include <graphics/regions.h>
  43. #endif
  44. #ifndef  GRAPHICS_SPRITE_H
  45. #include <graphics/sprite.h>
  46. #endif
  47. #ifndef  GRAPHICS_TEXT_H
  48. #include <graphics/text.h>
  49. #endif
  50. #ifndef  HARDWARE_BLIT_H
  51. #include <hardware/blit.h>
  52. #endif
  53. /*
  54. #ifndef GSP_GFX_BASE
  55. // typedef  struct Library GspGfxBase;
  56. #endif 
  57. */
  58. #define XOR 10
  59. #define OR  0
  60. #define SET 0
  61. /*
  62.  *  new def :
  63.  */
  64. #define DST_IS_SRC      0
  65. #define SRC_AND_DST     1
  66. #define SRC_AND_NOT_DST 2
  67. #define DST_ZERO        3
  68. #define SRC_OR_NOT_DST  4
  69. #define SRC_EQU_DST     5
  70. #define NOT_DST         6
  71. #define SRC_NOR_DST     7
  72. #define SRC_OR_DST      8
  73. #define DST             9
  74. #define SRC_XOR_DST     10
  75. #define NOT_SRC_AND_DST 11
  76. #define DST_IS_ONE      12
  77. #define NOT_SRC_OR_DST  13
  78. #define SRC_NAND_DST    14
  79. #define NOT_SRC         15
  80. #define SRC_PLUS_DST_O  16
  81. #define SRC_PLUS_DST_S  17
  82. #define SRC_MINUS_DST_O 18
  83. #define SRC_MINUS_DST_S 19
  84. #define MAX_SRC_DST     20
  85. #define MIN_SRC_DST     21
  86.  
  87. #define IN TRUE
  88. #define OUT FALSE
  89. #define BMB_CHUNKY_MAP   5 // private defintion for AllocBitmap
  90. #define BMB_GSP_MAP      6 // private defintion
  91. #define BMB_HST_MAP      7
  92.  
  93. #define BMF_CHUNKY_MAP  (1L<<BMB_CHUNKY_MAP) // private defintion for AllocBitmap
  94. #define BMF_GSP_MAP     (1L<<BMB_GSP_MAP)// private defintion
  95. #define BMF_HST_MAP     (1L<<BMB_HST_MAP)     
  96.  
  97. #define BMB_CACHE_STANDARD 0
  98. #define BMB_NO_CACHE       1
  99. #define BMB_LOCK_CACHE     2
  100. #define BMB_CACHE_FLUSH    8 // no mem, flush a map but not locked !
  101. #define BMB_FORCE_FLUSH    9 // flush also locked maps
  102.  
  103. #define BMF_CACHE_STANDARD (1<<BMB_CACHE_STANDARD)
  104. #define BMF_NO_CACHE       (1<<BMB_NO_CACHE)
  105. #define BMF_LOCK_CACHE     (1<<BMB_LOCK_CACHE)
  106. #define BMF_CACHE_FLUSH    (1<<BMB_CACHE_FLUSH)
  107. #define BMF_FORCE_FLUSH    (1<<BMB_FORCE_FLUSH)
  108.  
  109. #define INTEL_BYTES 1   // 1 = ON, 0 = OFF; only host2gsp: 2 = ?, 3 Rotates bitwise ~4+?,
  110. #define INTEL_BITS  3                       
  111. #define MOTO_BYTES  0
  112.  
  113. /*
  114. DEFINES for the x/y-Offset
  115. */
  116.  
  117. //#define CLIP_ON
  118. #define XOff ((rp->Layer) ? (rp->Layer->bounds.MinX - rp->Layer->Scroll_X) : 0)
  119. #define YOff ((rp->Layer) ? (rp->Layer->bounds.MinY - rp->Layer->Scroll_Y) : 0)
  120. #define XWidth (rp->Layer->bounds.MaxX)-XOff
  121. #define YWidth (rp->Layer->bounds.MaxY)-YOff
  122.  
  123. struct ChunkyMap 
  124. {
  125.     UBYTE *data;
  126.     long depth;
  127.     long xSize,ySize;
  128.     long bmsize;
  129.     long flag;
  130. };
  131.  
  132. #endif     /* GRAPHICS_TIGA_H */
  133.